package cn.test.mybatis.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import cn.test.mybatis.po.User;

/**
 * @author Han
 */
public interface IUserOperation {
	 public User getUserByID(int id);
	 public List<User> findAll();
	 @Select("select * from `user` where user_name like concat('%',#{name},'%');")
	 public List<User> searchByName(String name);
	 public int save(User user);
	 public int update(User user);
	 public int delete(int id);
}
